package javabase.schoolwork.day5_26;

/**
 * @author fance
 * @date 2018/5/26 20:27
 */
public class DemoForStatic {
    static int count=0;
    static String name;

    public DemoForStatic() {
        count++;
        name="aaa";
    }

    public static void main(String[] args) {
        DemoForStatic d1=new DemoForStatic();
        DemoForStatic d2=new DemoForStatic();
        DemoForStatic d3=new DemoForStatic();
        System.out.println(DemoForStatic.count);
        System.out.println(DemoForStatic.name);
    }
}
